<template>
  <div class="index">
    <router-view class="twopage" />
    <footer></footer>
    <van-tabbar route>
      <van-tabbar-item replace to="/home" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/cate" icon="search">分类</van-tabbar-item>
      <van-tabbar-item replace to="/cart" icon="home-o">购物车</van-tabbar-item>
      <van-tabbar-item replace to="/my" icon="search">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "P7indexIndex",

  data() {
    return {};
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="scss">
.index {
  display: flex;
  flex-direction: column;
  footer {
    height: 1rem;
  }
  .twopage {
    flex: 1;
  }
}
</style>
